lib: move memset()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:42:31 +0000 (14:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:42:31 +0000 (14:42 +0200)
commit8bd9c8d50315d5f3eb146c889ce629e5fcb18efa
tree548bf285b7f3b7d8ae1e4168a9eea7ebfdb7c61c
parent540d911c2813c3d8f4cdbb3f5672119e5e768a3d
lib: move memset()

By moving the function into an archive, x86 doesn't need to announce
anymore that is has its own implementation - symbol resolution by the
linker will now guarantee that the generic function remains unused, and
the forwarding to the compiler built-in gets done by the common header
anyway.

Allow the function to be individually linkable, discardable, and
overridable.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/string.c
xen/include/asm-x86/string.h
xen/lib/Makefile
xen/lib/memset.c [new file with mode: 0644]